package cn.edu.sdjzu.xg.kcsj.security;

public class Resource {
    private int id;
    private String description;
    private String no;
    private String router;
    private int parent_id;

    private int isChild;
    private int available;
    private int type;

    public Resource(int id, String description, String no, String router, int parent_id,int isChild,int available, int type) {
        this.id = id;
        this.description = description;
        this.no = no;
        this.router = router;
        this.parent_id = parent_id;
        this.isChild = isChild;
        this.type = type;
        this.available=available;
    }

    public int getAvailable() {
        return available;
    }

    public void setAvailable(int available) {
        this.available = available;
    }

    public int getId() {
        return id;
    }

    public String getDescription() {
        return description;
    }

    public String getNo() {
        return no;
    }

    public String getRouter() {
        return router;
    }

    public int getParent_id() {
        return parent_id;
    }



    public int getIsChild() {
        return isChild;
    }

    public int getType() {
        return type;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public void setRouter(String router) {
        this.router = router;
    }

    public void setParent_id(int parent_id) {
        this.parent_id = parent_id;
    }



    public void setIsChild(int isChild) {
        this.isChild = isChild;
    }

    public void setType(int type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Resource{" +
                "id=" + id +
                ", description='" + description + '\'' +
                ", no='" + no + '\'' +
                ", router='" + router + '\'' +
                ", parent_id=" + parent_id +
                ", isChild=" + isChild +
                ", type=" + type +
                '}';
    }
}
